import constants

class Life(object):
    """Understands how much life each character has and every hit hurts him how much until dead"""
  
    def __init__(self, quantity):
        self._quantity = quantity
      
    def hit(self):
        self._quantity -= 1
     
    def is_over(self):
        return self._quantity <= 0

    def remaining(self):
        return self._quantity

